﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ParboiledSharp.parboiled.rules
{
    class PushString : Rule
    {
        private string toBePushed;

        public PushString(string str)
        {
            toBePushed = str;
        }

        internal override bool Execute(dataobjects.Context context)
        {
            context.GetStack().Push(toBePushed);
            return true;
        }
    }
}
